﻿using System;

namespace WhiteFox.DAlessio.Patterns.UI.MVC
{
    public sealed class Domain<T> : IDomain
    {
        private T instance;
        public T Repository
        {
            get
            {
                if (instance == null) instance = Activator.CreateInstance<T>();
                return instance;
            }
        }
    }

    public interface IDomain
    {
        
    }
}
